package entities.box_plot;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.DecimalFormat;

public class RowOneIndexByContinent implements Serializable {

	private static final long serialVersionUID = -5248822220944628684L;

	private DecimalFormat df = new DecimalFormat("0,00");
	
	private String indexes;
	private int numberOfHiddenNeurons;
	private double learningRate;
	private double momentum;
	private int trainingTime;
	private BigDecimal percentualCorrect;

	public RowOneIndexByContinent(String indexes, int hiddenLayers, double learningRate, double momentum, int trainingTime, BigDecimal percentualCorrect) {
		this.indexes = indexes;
		this.numberOfHiddenNeurons = hiddenLayers;
		this.learningRate = learningRate;
		this.momentum = momentum;
		this.trainingTime = trainingTime;
		this.percentualCorrect = percentualCorrect;
	}
	
	@Override
	public String toString() {
		BigDecimal bd = percentualCorrect.setScale(2, BigDecimal.ROUND_FLOOR);
		return indexes + "\t" + numberOfHiddenNeurons + "\t" + learningRate + "\t" + momentum + "\t" + trainingTime + "\t" + bd;
	}
	

	public String getIndexes() {
		return indexes;
	}

	public int getNumberOfHiddenNeurons() {
		return numberOfHiddenNeurons;
	}

	public double getLearningRate() {
		return learningRate;
	}

	public double getMomentum() {
		return momentum;
	}

	public int getTrainingTime() {
		return trainingTime;
	}

	public BigDecimal getPercentualCorrect() {
		return percentualCorrect;
	}

}
